#include "concretefactorya.h"

ConcreteFactoryA::ConcreteFactoryA()
{
    a1 = new ConcreteProductA1();
    b2 = new ConcreteProductB2();
    c3 = new ConcreteProductC3();
}

ConcreteFactoryA::~ConcreteFactoryA()
{
    delete a1;
    delete b2;
    delete c3;
}

AbstractProductA *ConcreteFactoryA::getProductA()
{
    return a1;
}

AbstractProductB *ConcreteFactoryA::getProductB()
{
    return b2;
}

AbstractProductC *ConcreteFactoryA::getProductC()
{
    return c3;
}
